#ifndef EPOLL_EVENT_H
#define EPOLL_EVENT_H

#include "event.h"

int epoll_create_event_manager (int size);

int epoll_add_fd (int fd, int events);
int epoll_del_fd (http_connection_t *http_connection);

int epoll_del_listener (int fd);

int epoll_event_wait (int timeout);

int epoll_prepare_for_reading (http_connection_t *http_connection);
int epoll_prepare_for_writing (http_connection_t *http_connection);
int epoll_remove_notifications (http_connection_t *http_connection);

#endif /* EPOLL_EVENT_H */
